# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xdriinfo
pkgver=1.0.7
pkgrel=1
pkgdesc="query configuration information of DRI drivers"
options="!check" # No testsuite
url="https://wiki.freedesktop.org/xorg/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
makedepends="libx11-dev mesa-dev xorgproto"
source="https://www.x.org/releases/individual/app/xdriinfo-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
a368cf32c606ca78f3a23bc5d88fb57b9c1a3827d0fec3e48cee153703135e47cecd3db8ee0eba93f309d7f03b4306c3f2e7f46f36d0d2970671c5e5b78093ad  xdriinfo-1.0.7.tar.xz
"
